package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Http.InterfaceResult;
import com.ruoyi.system.mapper.InterfaceResultMapper;
import com.ruoyi.system.service.IInterfaceResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * interfaceResultService业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-10
 */
@Service
public class InterfaceResultServiceImpl implements IInterfaceResultService 
{
    @Autowired
    private InterfaceResultMapper interfaceResultMapper;

    /**
     * 查询interfaceResult
     * 
     * @param resultId interfaceResultID
     * @return interfaceResult
     */
    @Override
    public InterfaceResult selectInterfaceResultById(String resultId)
    {
        return interfaceResultMapper.selectInterfaceResultById(resultId);
    }

    /**
     * 查询interfaceResult列表
     * 
     * @param interfaceResult interfaceResult
     * @return interfaceResult
     */
    @Override
    public List<InterfaceResult> selectInterfaceResultList(InterfaceResult interfaceResult)
    {
        return interfaceResultMapper.selectInterfaceResultList(interfaceResult);
    }

    /**
     * 新增interfaceResult
     * 
     * @param interfaceResult interfaceResult
     * @return 结果
     */
    @Override
    public int insertInterfaceResult(InterfaceResult interfaceResult)
    {
        return interfaceResultMapper.insertInterfaceResult(interfaceResult);
    }

    /**
     * 修改interfaceResult
     * 
     * @param interfaceResult interfaceResult
     * @return 结果
     */
    @Override
    public int updateInterfaceResult(InterfaceResult interfaceResult)
    {
        return interfaceResultMapper.updateInterfaceResult(interfaceResult);
    }

    /**
     * 批量删除interfaceResult
     * 
     * @param resultIds 需要删除的interfaceResultID
     * @return 结果
     */
    @Override
    public int deleteInterfaceResultByIds(String[] resultIds)
    {
        return interfaceResultMapper.deleteInterfaceResultByIds(resultIds);
    }

    /**
     * 删除interfaceResult信息
     * 
     * @param resultId interfaceResultID
     * @return 结果
     */
    @Override
    public int deleteInterfaceResultById(String resultId)
    {
        return interfaceResultMapper.deleteInterfaceResultById(resultId);
    }
}
